package cn.sample.moreitems.init;

import cn.sample.moreitems.MoreItems;
import cn.sample.moreitems.item.ThrownRockItem;
import cn.sample.moreitems.item.XuanyuanSwordItem;
import net.minecraft.world.item.BlockItem;
import net.minecraft.world.item.Item;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ModItems {
    public static final DeferredRegister<Item> ITEMS =
            DeferredRegister.create(ForgeRegistries.ITEMS, MoreItems.MODID);

    public static final RegistryObject<Item> THROWN_ROCK = ITEMS.register("thrown_rock",
            ThrownRockItem::new);

    public static final RegistryObject<BlockItem> TECHNOLOGY_BLOCK = ITEMS.register("technology_block",
            () -> new BlockItem(ModBlocks.TECHNOLOGY_BLOCKS.get(), new Item.Properties()));


    public static final RegistryObject<XuanyuanSwordItem> XUAN_YUAN_SWORD_ITEM = ITEMS.register("xuan_yuan_sword_item",
            XuanyuanSwordItem::new);

}
